const lock_field = {
    "addDisplay": false,
    "addDisabled": false,
    "editDisplay": false,
    "editDisabled": true,
    "showColumn": false,
};
export const tableOption = {
    "border": true,
    "index": true,
    "indexLabel": "序号",
    "stripe": true,
    "menuAlign": "center",
    "align": "center",
    "searchMenuSpan": 6,
    dialogWidth: 500,
    labelWidth: 80,
    "column": [{
        ...lock_field,
        "type": "input",
        "label": "编号",
        "prop": "kechengId",
    }, {
        ...lock_field,
        "type": "input",
        "label": "学籍号",
        "prop": "kechengStudent",
    }, {
        ...lock_field,
        "type": "input",
        "label": "学期编号",
        "prop": "kechengTerm",
        "hide": true,
    }, {
        "type": "input",
        "label": "课程名称",
        "prop": "kechengTitle",
        rules:[{required: true, message: "必填内容，不能为空", trigger: "blur" }],
        span: 24,
    }, {
        "type": "input",
        "label": "总学时数",
        "prop": "kechengHours",
        rules:[{required: true, message: "必填内容，不能为空", trigger: "blur" }],
        span: 12
    }, {
        "type": "input",
        "label": "成绩",
        "prop": "kechengAchievement",
        rules:[{required: true, message: "必填内容，不能为空", trigger: "blur" }],
        span: 12
    }, {
        "type": "input",
        "label": "学分",
        "prop": "kechengCredit",
        span: 12
    }, {
        ...lock_field,
        "type": "input",
        "label": "创建人",
        "prop": "kechengCreateUser",
    }, {
        ...lock_field,
        "type": "input",
        "label": "",
        "prop": "kechengCreateTime",
    }, {
        ...lock_field,
        "type": "input",
        "label": "审核人",
        "prop": "kechengApproveUser",
    }, {
        ...lock_field,
        "type": "input",
        "label": "",
        "prop": "kechengApproveTime",
    }],
    group: [{
        label: "附件",
        column: [{
            "type": "upload",
            "label": "附件",
            "prop": "attachment",
            "action": "/szpj/file/zp_ke_cheng/upload",
            "multiple": true,
        }],
    }],

}